﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VideoNetApplication.Common.Dao;

namespace VideoNetApplication.Common.Service
{
   public class TeacherService
    {
       TeacherDao dao=new TeacherDao();
       /// <summary>
       /// 获取所有老师
       /// </summary>
       /// <param name="schoolId"></param>
       /// <param name="startIndex"></param>
       /// <param name="maxRows"></param>
       /// <param name="recordCount"></param>
       /// <returns></returns>
       public  List<V_teacher> GetTeacherByALL(int schoolId, int startIndex, int maxRows,out int recordCount)
       {
           return dao.GetTeacherByALL(schoolId, startIndex, maxRows, out recordCount);

       }

       /// <summary>
       /// 获取一个老师
       /// </summary>
       /// <param name="tid"></param>
       /// <param name="schoolId"></param>
       /// <returns></returns>
       public V_teacher GetTeacherByID(int tid,int schoolId)
       {
           return dao.GetTeacherByID(tid, schoolId);

       }
    }
}
